Hi,
I am trying to calculate downtime in the last x days.
For this I am trying to use the PD incidents API to get a list of incidents that are either:
- currently unresolved.
or - were resolved in the last 7 days.
I tried using the since param in the incidents api. But it seems the purpose of since is based on created date.
In other words, if I had 10 incidents, and all of them were opened 1 year ago but are currently open or only resolved in last 7 days. Those incidents will not show up if the since is set to 7 days ago. There is no way to query those incidents.
I guess what I need is a an equivalent of an api param called unresolvedSince which would include all those incidents that were in an unresolveed state even for 1 or 2 hours after unresolvedSince timestamp.
Right now the only way is that I query API with since set to something ridiculously large and then filter the results later based on resolved date. I am sure there has to be a better way to do this.
Please help with how can I query for the information that I need.
regards,
Shobhit